package cn.chinaflame.pagodas.req;

import cn.chinaflame.pagodas.enums.CodeEnum;
import cn.chinaflame.pagodas.utils.ParamPreconditions;

/**
 * 保存微信登录信息
 *
 * @author created by boming
 * @date 2018年1月12日 上午9:18:07
 */
public class WebRegistDetailReq extends BaseReq {

    private String openid;//微信openid
    private String mobile;//手机号
    private String memberId;//会员id
    private String nickname;//昵称
    private String sex;//性别
    private String language;//语言
    private String city;//城市
    private String province;//省份
    private String country;//
    private String headimgurl;//图片

    @Override
    public void check() {
        // TODO Auto-generated method stub
        super.check();
        ParamPreconditions.checkNotEmpty(openid, CodeEnum.FAIL.getCode(), "openid不能为空");
//		ParamPreconditions.checkNotEmpty(CodeEnum.FAIL.getCode(), "参数存在空值", "参数存在空值",
//				nickname, sex, city, province, country, headimgurl);
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getMemberId() {
        return memberId;
    }

    public void setMemberId(String memberId) {
        this.memberId = memberId;
    }

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getLanguage() {
        return language;
    }

    public void setLanguage(String language) {
        this.language = language;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCountry() {
        return country;
    }

    public void setCountry(String country) {
        this.country = country;
    }

    public String getHeadimgurl() {
        return headimgurl;
    }

    public void setHeadimgurl(String headimgurl) {
        this.headimgurl = headimgurl;
    }

}
